@import "../../../css/assets/dpl/variables.less";
@import "../../../css/assets/dpl/mixins.less";
@import 'variables.less';

.ks-tabs {
    .ks-clear_();
}

.ks-tabs-bar {
    background-image: none;
    background-color: transparent;
    border-width: 0px;
    outline: none;
    filter:none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    margin-bottom: @tabBarMargin;
}

.ks-tabs-body {
    overflow: auto;

    & > .ks-tabs-panel {
        display: none;
    }
    & > .ks-tabs-panel-selected {
        display: block;
    }
}

.ks-tabs-bar .ks-tabs-tab.ks-button {
    padding: @tabPadding;
    margin: 0;
    border: @tabBorder;
    color: lighten(@tabSelectedColor, 15%);

    .reset-filter();
    background: none;

    &.ks-tabs-tab-hover,
    &:hover {
        background-color: @tabHoverBackgroundColor;
        border-color: @tabHoverBorderColor;
    }

    &.ks-tabs-tab-selected,
    &.ks-tabs-tab-selected.ks-tabs-tab-active {
        color: @tabSelectedColor;
        background-color: @tabSelectedBackgroundColor;
        cursor: default;
        .box-shadow(none);
    }
}

.ks-tabs-top {
    & > .ks-tabs-bar {
        .ks-clear_();
        border-bottom: @tabBarBorderWidth solid @tabBarBorderColor;
    }

    & > .ks-tabs-bar > .ks-tabs-tab {
    /*
    inline-block cause whitespace in ie67
    float is perfect
    */
        float: left;
        margin-right: @tabMargin;
        display: inline;
        margin-bottom: -@tabBarBorderWidth;
        border-radius: @tabRadius @tabRadius 0 0;
        &.ks-tabs-tab-selected,
        &.ks-tabs-tab-selected.ks-tabs-tab-active {
            border-color: @tabBarBorderColor @tabBarBorderColor transparent @tabBarBorderColor;
        /* ie7 transparent border makes bar border leaks*/
            *border-bottom-color: white;
        }
    }
}

.ks-tabs-bottom {
    & > .ks-tabs-bar {
        .ks-clear_();
        border-top: @tabBarBorderWidth solid @tabBarBorderColor;
    }

    & > .ks-tabs-bar > .ks-tabs-tab {
        float: left;
        margin-right: @tabMargin;
        display: inline;
        margin-top: -@tabBarBorderWidth;
        border-radius: 0 0 @tabRadius @tabRadius; //*margin-top: -@tabMargin;
        &.ks-tabs-tab-selected,
        &.ks-tabs-tab-selected.ks-tabs-tab-active {
            border-color: transparent @tabBarBorderColor @tabBarBorderColor @tabBarBorderColor;
            *border-top-color: white;
        }
    }
}

.ks-tabs-left {

    & > .ks-tabs-bar {
        margin-right: @tabBarMargin;
        border-right: @tabBarBorderWidth solid @tabBarBorderColor;
        float: left;
    }

    & > .ks-tabs-bar > .ks-tabs-tab {
        margin-right: -@tabBarBorderWidth;
        border-radius: @tabRadius 0 0 @tabRadius; //*margin-top: -@tabMargin;
        display: block;
        margin-bottom: @tabMargin;
        &.ks-tabs-tab-selected,
        &.ks-tabs-tab-selected.ks-tabs-tab-active {
            border-color: @tabBarBorderColor transparent @tabBarBorderColor @tabBarBorderColor;
            *border-right-color: white;
        }
    }

}

.ks-tabs-right {

    & > .ks-tabs-bar {
        margin-left: @tabBarMargin;
        border-left: @tabBarBorderWidth solid @tabBarBorderColor;
        float: right;
    }

    & > .ks-tabs-bar > .ks-tabs-tab {
        margin-left: -@tabBarBorderWidth;
        border-radius: 0 @tabRadius @tabRadius 0; //*margin-top: -@tabMargin;
        display: block;
        margin-bottom: @tabMargin;
        &.ks-tabs-tab-selected,
        &.ks-tabs-tab-selected.ks-tabs-tab-active {
            border-color: @tabBarBorderColor @tabBarBorderColor @tabBarBorderColor transparent;
            *border-left-color: white;
        }
    }

}

.ks-tabs-tab {
  .ks-tabs-tab-close {
    width: 14px;
    height: 14px;
    background-image: url(http://img04.taobaocdn.com/tps/i4/T1bxYzXmxeXXcIVv2D-469-159.png);
    background-repeat: no-repeat;
    background-position: -312px 0;
    text-indent: -9999px;
    font-size: 0;
    top:2px;
    right: 2px;
    position: absolute;
    cursor: pointer;
  }

  position: relative;
}

.ks-tabs-tab-closable {
  .ks-tabs-tab-content {
    padding-right: 15px;
  }
}

.ks-tabs-tab-hover .ks-tabs-tab-close {

}